CVE-2026-4598
Apache jsrsasign Infinite Loop Denial of Service
Description
Versions of the package jsrsasign before 11.1.1 are vulnerable to Infinite loop via the bnModInverse function in ext/jsbn2.js when the BigInteger.modInverse implementation receives zero or negative inputs, allowing an attacker to hang the process permanently by supplying such crafted values (e.g., modInverse(0, m) or modInverse(-1, m)).
INFO
Published Date :
March 23, 2026, 6:16 a.m.
Last Modified :
March 23, 2026, 4:18 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] | ||||
| CVSS 4.0 | HIGH | [email protected] |
Solution
- Update the jsrsasign package to version 11.1.1 or newer.
- Avoid zero or negative inputs for bnModInverse function.
- Apply input validation to modInverse calls.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-4598.
| URL | Resource |
|---|---|
| https://gist.github.com/Kr0emer/a1bf5cd4547cc630d2dcc5e761de8264 | Exploit Mitigation Third Party Advisory |
| https://github.com/kjur/jsrsasign/commit/ca5b027240287a1e71fe63019fc4400332594323 | Patch |
| https://github.com/kjur/jsrsasign/pull/648 | Issue Tracking |
| https://security.snyk.io/vuln/SNYK-JS-JSRSASIGN-15370938 | Third Party Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-4598 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-4598
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-4598 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-4598 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Mar. 23, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:jsrsasign_project:jsrsasign:*:*:*:*:*:node.js:*:* versions up to (excluding) 11.1.1 Added Reference Type Snyk: https://gist.github.com/Kr0emer/a1bf5cd4547cc630d2dcc5e761de8264 Types: Exploit, Mitigation, Third Party Advisory Added Reference Type Snyk: https://github.com/kjur/jsrsasign/commit/ca5b027240287a1e71fe63019fc4400332594323 Types: Patch Added Reference Type Snyk: https://github.com/kjur/jsrsasign/pull/648 Types: Issue Tracking Added Reference Type Snyk: https://security.snyk.io/vuln/SNYK-JS-JSRSASIGN-15370938 Types: Third Party Advisory -
New CVE Received by [email protected]
Mar. 23, 2026
Action Type Old Value New Value Added Description Versions of the package jsrsasign before 11.1.1 are vulnerable to Infinite loop via the bnModInverse function in ext/jsbn2.js when the BigInteger.modInverse implementation receives zero or negative inputs, allowing an attacker to hang the process permanently by supplying such crafted values (e.g., modInverse(0, m) or modInverse(-1, m)). Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-835 Added Reference https://gist.github.com/Kr0emer/a1bf5cd4547cc630d2dcc5e761de8264 Added Reference https://github.com/kjur/jsrsasign/commit/ca5b027240287a1e71fe63019fc4400332594323 Added Reference https://github.com/kjur/jsrsasign/pull/648 Added Reference https://security.snyk.io/vuln/SNYK-JS-JSRSASIGN-15370938